package com.hulk.ratel.persistence.mapper;

import com.hulk.ratel.persistence.entity.NotifyRecord;
import com.hulk.ratel.persistence.mapper.SuperMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hulk
 * @since 2021-03-13
 */
@Mapper
public interface NotifyRecordMapper extends SuperMapper<NotifyRecord> {

	@Update("UPDATE t_notify_record SET notify_count = notify_count+1 WHERE notify_id = #{notifyId}")
	int updateRetryNotifyCount(@Param("notifyId") Long notifyId);

}
